package demo12_FunctionInterface;

import java.util.function.Consumer;
import java.util.function.Predicate;

/**
 * @author kunkun
 * @className Test03_Consumer
 * @Description 消费者函数式接口
 * @date 2025/3/6 21:05
 */
public class Test03_Consumer {

    public static void main(String[] args) {
        Consumer<Integer> consumer = (index)->{
            System.out.println(index);
        };      //消费者函数式接口，一个输入，没有输出
        consumer.accept(100);
    }

}
